Skip to content

[3.14] gh-69134: Wait until mapped in keyboard virtual-event tests (GH-152599)#152606

Merged
serhiy-storchaka merged 1 commit into
python:3.14from
miss-islington:backport-be4eebb-3.14
Jun 29, 2026
Merged

[3.14] gh-69134: Wait until mapped in keyboard virtual-event tests (GH-152599)#152606
serhiy-storchaka merged 1 commit into
python:3.14from
miss-islington:backport-be4eebb-3.14

Conversation

@miss-islington

@miss-islington miss-islington commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

test_virtual_events and test_selection_event generate key events after
focus_force(). On Windows these are only delivered once the toplevel is
mapped, so they could be dropped and the test fail. Wait until the
widget is mapped, as the other GUI tests already do.
(cherry picked from commit be4eebb)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com
Co-authored-by: Claude Opus 4.8 noreply@anthropic.com

…thonGH-152599)

test_virtual_events and test_selection_event generate key events after
focus_force().  On Windows these are only delivered once the toplevel is
mapped, so they could be dropped and the test fail.  Wait until the
widget is mapped, as the other GUI tests already do.
(cherry picked from commit be4eebb)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
@bedevere-app bedevere-app Bot added the tests Tests in the Lib/test dir label Jun 29, 2026
@serhiy-storchaka serhiy-storchaka enabled auto-merge (squash) June 29, 2026 15:37
@serhiy-storchaka serhiy-storchaka merged commit f5969e7 into python:3.14 Jun 29, 2026
86 of 88 checks passed
@miss-islington miss-islington deleted the backport-be4eebb-3.14 branch June 29, 2026 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants